//fullscreen stuff
			function IFS_fullScreen(){
						return window.nativeWindow.stage.displayState = runtime.flash.display.StageDisplayState.FULL_SCREEN_INTERACTIVE;
			}
			
            // loads content of framedata.txt in htdocs on localhost
            function IFS_grabData() {
			new Ajax.Request('http://127.0.0.1/iframeserver/data/framedata.txt', {
				method: 'get',
				onSuccess: function(transport){
					IFS_processData(transport);
				}
			});             
            }
			
			// loads content of version.txt in htdocs on localhost
			// then displays it in the top 
			 function IFS_grabVersion() {
				new Ajax.Request('http://127.0.0.1/iframeserver/data/version.txt',{
					method: 'get',
					onSuccess: function(transport){
						$('version').innerHTML = "iFrameVersion: " + transport.responseText;
						$('version').style.fontSize = '-4';
					}    
				});
             }
			
			// grabs transport data from IFS_grabData()
			//splits data into an array where ther is a |
			// checks to see the current status
			// if 1; then display iFrame
			// if 0; then display message
				/*
				 * fData[0] = Name
				 * fData[1] = Date of Birth
				 * fData[2] = Date of Death
				 * fData[3] = Status
				 * fData[4] = Arrow
				 */
            function IFS_processData(transport){
			
				var fData = transport.responseText.split('|');

				//alert("Name: " + fData[0] + "\nDOB: " + fData[1] + "\nDOD: " + fData[2] + "\nStatus: " + fData[3] + "\nArrow: " + fData[4]);
				if (fData[3] == "1") {
				
					$('name').innerHTML = fData[0];
					$('dobDOD').innerHTML = fData[1] + " - " + fData[2];
					$('arrow').innerHTML = 'Parlor B'
				}
				else {
					$('dobDOD').innerHTML = 'iFrame is inactive!<br /> Please goto the administration panel to update.'
				}
			}